package com.zemb.flxwear;

import android.app.Application;

import com.tencent.bugly.crashreport.CrashReport;
import com.zemb.flxwear.DB.DataBaseHelper;
import com.zemb.flxwear.Utils.LogUtils;
import com.zemb.flxwear.Utils.SharePreferencesUtils;

//单例模式
public class MainAPP extends Application {

    private static MainAPP instance;
    public static MainAPP getInstance() {
        return instance;
    }
    @Override
    public void onCreate() {
        super.onCreate();
        instance = this;
        CrashReport.initCrashReport(getApplicationContext(), "738de0fbe7", true);
        CrashReport.enableBugly(true);

        LogUtils.PrintLog("应用启动");
        DataBaseHelper.getInstance(this);
        SharePreferencesUtils.getInstance().init(this);

    }


}
